﻿#!/bin/sh

#hao
#甜糖邀请码880756

cd /root

rm -f main.zip

cd /root

rm -f 880756.sh

cd /root

rm -f xy.sh

cd /root

rm -f dns.sh

cd /root

rm -rf /usr/node

sed -i '/\/usr\/node/d' /etc/crontab

#sed -i "5a service sshd start\nservice crond start" /etc/rc.local

sed -i "15a * * * * * root /usr/node/tt.sh\n* * * * * root /usr/node/crash_monitor.sh" /etc/crontab

cd /.

mkdir mnts /usr/node 2>/root/null

chmod -R 777 /root/TTarm

cd /root/TTarm

/bin/cp -rf 880756/*  /root

cd /root

sh cx.sh

cd /root/TTarm

/bin/cp -rf node/*  /usr/node

cd /usr

chmod -R 777 /usr/node

cd /root

#for i in `seq 1 5`
#do
sh 880756.sh
#done
#貌似不执行，改手动，哈哈
sh 880756.sh
sh 880756.sh
sh 880756.sh
sh 880756.sh
sh 880756.sh
sh 880756.sh
sh 880756.sh
sh 880756.sh
sh 880756.sh
sh 880756.sh

cd /root

rm -f main.zip

rm -f cx.sh

cd /root

rm -rf /root/TTarm&&

echo -e "\033[31m  恭喜你，甜糖已经成功启动！新人填写甜糖邀请码：880756即可获得15张加成卡。你的支持是我的动力---@hao \033[0m"
echo "   Congratulations, Tiantang has been started successfully! New people fill in Tiantang invitation code: 880756 can get 15 bonus cards. Your support is my driving force----@hao"
echo "   如需帮助可加入甜糖QQ群:1038849085 或咨询QQ:15485851"
cd